<form method="post" action="/oss/?r=sdkServer/doEdit">
    <{include file='../common_params.tpl'}>
    <input type="hidden" name="id" value="<{$info.id}>" />

    <div class="box box-black">
        <div class="box-body">
            <table class="table table-bordered">
                <colgroup>
                    <col style="width: 20%;"></col>
                    <col style="width: 80%;"></col>
                </colgroup>
                
                <tr>
                    <th class="th-label">SDK服务器名称</th>
                    <td>
                        <input type="text" name="server_name" class="form-control inline" value="<{$info.server_name}>" placeholder="" />
                    </td>
                </tr>
                
                <tr>
                    <th class="th-label">GM API接口地址</th>
                    <td>
                        <input type="text" name="oss_api" class="form-control" value="<{$info.oss_api}>" placeholder="提供GM API调用的接口的地址,如http://119.29.240.201:6027/gm/" />
                    </td>
                </tr>

            </table>
        </div>

        <div class="box-footer">
            <a href="<{$backUrl}>" class="btn btn-default">返回</a>
            <button type="submit" name="sub" class="btn btn-default pull-right">保存</button>
            <input type="hidden" name="page" value="<{$page}>" />
        </div>
    </div>
</form>

<script type="text/javascript">
    $(function(){
    	$('button[name="sub"]').click(function(){
        	var server_name = $('input[name="server_name"]').val();
        	if(server_name == ''){
        		layer.alert('请填写SDK服务器名称', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	var oss_api = $('input[name="oss_api"]').val();
        	if(oss_api == ''){
        		layer.alert('请填写GM API接口地址', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        });
    });
    
    
</script>